package Imperion;

public class ShieldMath extends Main {

    static double shieldGeneratorLevel;
    static double shieldResearchLevel;
    static double shieldPoints;
    static double shieldHp;
    static double shieldEnergy;
    static double output;
    static double outputHour;
    static String output1;

    public void calculation() {

        shieldGeneratorLevel = Double.parseDouble(Gui.shieldGeneratorLevel.getText());
        shieldResearchLevel = Double.parseDouble(Gui.shieldResearchLevel.getText());
        shieldPoints = Double.parseDouble(Gui.shieldPoints.getText());
        shieldEnergy = Double.parseDouble(Gui.energyConsumption.getText());
        shieldHp = (shieldGeneratorLevel * 3) * (Math.pow(shieldPoints, 0.8)) * (1 + (.2 * shieldResearchLevel));
        output = shieldHp;
        outputHour = ((shieldGeneratorLevel * 3) * Math.pow(shieldPoints + shieldEnergy, 0.8) * (1 + (.2 * shieldResearchLevel))) - output;
    }
}
